﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NuMvvm.Validation
{
    public class ValidationException : Exception
    {
        public ValidationException(
            ValidationResult validationResult,
            ValidationAttribute validatingAttribute,
            object value
        )
        {
            ValidationResult  = validationResult;
            ValidatingAttribute  = validatingAttribute;
            Value  = value;
        }

        public ValidationResult ValidationResult { get; private set; } 

        public ValidationAttribute ValidatingAttribute { get; private set; } 

        public object Value { get; private set; }
    }
}
